import Vue from 'vue'
import Router from 'vue-router'
import MovieList from '../components/MovieList'
import MovieDetlid from '../components/MovieDetlid'
import short_reviews from '../components/short_reviews'
import ActorList from '../components/ActorList'
import UpcomingM from '../components/UpcomingM'
import ComingList from '../components/ComingList'
import Comingactor from '../components/Comingactor'
import search from '../components/search'
import searchResult from '../components/searchResult'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MovieList',
      component: MovieList
    },
    {
    	path:'/movie/:id',
    	name:'MovieDetlid',
    	component:MovieDetlid
    },
    {
      path:'/short_reviews/:id',
      name:'short_reviews',
      component:short_reviews
    },
    {
      path:'/ActorList/:id',
      name:'ActorList',
      component:ActorList
    },
    {
      path:'/UpcomingM',
      name:'UpcomingM',
      component:UpcomingM
    },
    {
      path:'/ComingList/:id',
      name:'ComingList',
      component:ComingList
    },
    {
      path:'/search',
      name:'search',
      component:search
    },
    {
      path:'/Comingactor/:id',
      name:'Comingactor',
      component:Comingactor
    },
    {
      path:'/searchResult/',
      name:'searchResult',
      component:searchResult
    }
  ]
})
